﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;
using System.Transactions;

namespace RMS.DataAccess.Common
{
    public class Transaction
    {
        public TransactionScope TransactionScope()
        {
            TransactionOptions option = new TransactionOptions();
            option.IsolationLevel = IsolationLevel.ReadCommitted;
            option.Timeout = new TimeSpan(1, 1, 1);
            return new TransactionScope(TransactionScopeOption.Required, option);
        }
    }
}
